<!DOCTYPE html>
<html>
<head>
    <title>毕业院校</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.2/style/weui.min.css ">
    <link rel="stylesheet" href="https://cdn.bootcss.com/jquery-weui/1.2.0/css/jquery-weui.min.css ">
    <link rel="stylesheet" href="https://jqweui.cn/dist/demos/css/demos.css ">
    <link rel="stylesheet" href="https://at.alicdn.com/t/font_587767_rj4fkdnklqttvs4i.css ">
    <link href="__TMPL__/public/assets/css/layui.css" rel="stylesheet" />
    <link href="__TMPL__/public/assets/css/LCalendar.css" rel="stylesheet" />
    <script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js "></script>
    <script src="__TMPL__/public/assets/js/LCalendar.js"></script>
    <style type="text/css">
        body{background-color: #eeefef}
        .biye{font-size: 15px;margin-top: 11px;position: absolute;left: 26%;}
        .weui-flex__item .save{margin-top: 11px;position: absolute;right: -89%;font-size: 14px;color: #1aac19;}
        .bianju{margin-top:10px;}
        .circle{font-size: 18px;}
        .fu{position: relative;}
        .time{position: absolute;line-height: 43px;left: 34px;top: 2px;}
        .choose{margin-left: 71%;margin-top: 12px;position: absolute;color: #CACACA}
        .rightward{font-size: 21px;position: relative;margin-left: 90%;top: 12px;color: #c8c8cd;width: 6px;height: 6px}
        .line{left: 25px;border-bottom: 1px solid #E5E5E5;position: relative}
        .layui-timeline-axis{top: 13px;left: 6px;}
        .layui-timeline-item:before{top: 33px;left: 15px;}
        .choose input{margin-left: -35px;border: none}
        .xueli{margin-left: -25px;}
        .kuangdu{width: 105px;}
        .youbianju{margin-right: 30px;}
        .weui-cell .weui-cell__bd input[type="text"]::before{
            content: attr(placeholder);
            color:#CACACA;
            font-size: 15px;
            }
    </style>
</head>

<body>
<!--头部开始-->
<form  action="{:url('Teacher/t51')}" method="post" id="form">
<div class="weui-flex" style="border-bottom: 1px solid gainsboro;background: #FCFCFC;height: 45px">
    <div class="weui-flex__item" style="margin-top: 15px;">
        <div class="placeholder"style="margin-left: 10px;margin-top: -5px;" >
            <a href="{:url('portal/teacher/teacher5')}"><span  style="color: #04BE02;" onclick="history.back()" class="icon icon-back"></span>
            </a></div>
    </div>
    <div class="weui-flex__item" style="position: relative">
        <div class="placeholder biye">毕业院校</div>
        <div class="save">
            <input type="submit" onclick="tc()" value="保存" style="border:none;color: #1aac19;background-color: #ffffff">
        </div>
    </div>
    <div class="weui-flex__item"><div class="placeholder" ></div></div>
</div>
<!--头部结束-->
<!--内容开始-->
    <div class="weui-cells weui-cells_form bianju" >
        <div class="weui-cell" style="border-bottom: 1px solid gainsboro;position: relative">
            <div class="weui-cell__hd"><label class="weui-label kuangdu" style="color: #646464" >学校名称</label></div>
            <div class="weui-cell__bd" style="margin-right: 37px;">
                <input class="weui-input youbianju" name="schoolname" id="name" type="text" value="{$tc5['school']}" placeholder="{$tc5['school']}" style="font-size: 16px;position: relative;text-align: right">
            </div>
        </div>

        <ul class="layui-timeline">
            <li class="layui-timeline-item">
               <!-- <i class="layui-timeline-axis circle" style="font-size: 12px;">○</i>-->
                <div class="layui-timeline-content layui-text fu">
                    <span class="layui-timeline-title time" style="color: #272727">开始时间</span>
                    <span class="choose">
                         <input type="text" name="start_date" value="" id="start_date" placeholder="选择时间" readonly="readonly"  style="color: #151515;font-size: 16px"/>
                    </span>
                    <span class="rightward"></span>
                </div>
            </li>
            <div class="line"></div>
            <li class="layui-timeline-item">
                <!--<i class="layui-timeline-axis circle"  style="font-size: 12px;">○</i>-->
                <div class="layui-timeline-content layui-text">
                    <span class="layui-timeline-title time" style="color: #272727">结束时间</span>
                    <span class="choose">
                        <input type="text" name="end_date" id="end_date" placeholder="选择时间" readonly="readonly" style="color: #151515;font-size: 16px"/>
                    </span>
                    <span class="rightward"></span>
                </div>
            </li>
        </ul>
        <!--<div class="weui-cell" style="border-bottom: 1px solid gainsboro;">-->
            <!--<div class="weui-cell__hd"><label class="weui-label">院系名称：</label></div>-->
            <!--<div class="weui-cell__bd">-->
                <!--<input class="weui-input"  name="department" type="text"value=""  placeholder="{$tc5['department']}">-->
            <!--</div>-->
        <!--</div>-->
        <!--<div class="weui-cell" style="position: relative">
            <div class="weui-cell__hd">
                <label class="weui-label kuangdu" style="color: #646464">学历</label>
            </div>
            <div class="weui-cell__bd" style="margin-right: 13px;">
                &lt;!&ndash;<input class="weui-input " name="major" type="text" value="" placeholder="{$tc5['major']}">&ndash;&gt;
            </div>
            <span class="rightwardxueli" style="position: absolute;font-size: 23px;margin-left: 86.5%;top: 12px;color: #c8c8cd;">＞</span>
        </div>-->
        <div class="weui-cell" style="border-bottom: 1px solid gainsboro;position: relative">
            <div class="weui-cell__hd"><label class="weui-label" style="color: #646464">院系</label></div>
            <div class="weui-cell__bd"  style="margin-right: 37px;">
                <input class="weui-input youbianju" name="department" id="department" type="text"  value="{$tc5['department']}" placeholder="请输入院系名称" style="font-size: 16px;position: relative;text-align: right">
            </div>
        </div>
        <div class="weui-cell" style="border-bottom: 1px solid gainsboro;position: relative">
            <div class="weui-cell__hd"><label class="weui-label" style="color: #646464">专业</label></div>
            <div class="weui-cell__bd"  style="margin-right: 37px;">
                <input class="weui-input youbianju" name="major" id="major" type="text"  value="{$tc5['major']}" placeholder="{$tc5['major']}" style="font-size: 16px;position: relative;text-align: right">
            </div>
        </div>
        <!--<div class="weui-cell" style="border-bottom: 1px solid gainsboro;">-->
            <!--<div class="weui-cell__hd"><label class="weui-label">在校时间：</label></div>-->
            <!--<div class="weui-cell__bd">-->
                <!--<input class="weui-input" name="schooltime" type="text"  value="{$tc5['school_time']}" placeholder="请输入在校时间">-->
            <!--</div>-->
        <!--</div>-->
</div>
    <a   href="{:url('Teacher/delete5',array('id'=>$tc5.id))}" class="weui-btn weui-btn_primary"  style="position: absolute;bottom: 0px;left: 2%;float:right;font-size: 14px;width: 96%" >删除此条数据</a>
</form>
<script src="__TMPL__/public/assets/js/jquery-2.1.4.js"></script>
<script src="__TMPL__/public/assets/js/fastclick.js"></script>
<script>
    $(function() {
        FastClick.attach(document.body);
    });
    function tc(){
        if($("#major").val()==""||$("#department").val()==""||$("#name").val()==""){
            alert("请将信息填写完整");
            $("#form").attr('action',"##");
        }
        else {
        }
    }
</script>
<script src="__TMPL__/public/assets/js/jquery-weui.js"></script>
<script src="__TMPL__/public/assets/js/city-picker.js"></script>
<script type="text/javascript">
    var calendar = new LCalendar();
   // console.log(calendar);
    calendar.init({
        'trigger': '#start_date', //标签id
        'type': 'ym', //date 调出日期选择 datetime 调出日期时间选择 time 调出时间选择 ym 调出年月选择,
        'minDate': (new Date().getFullYear()-50) + '-' + 1 + '-' + 1, //最小日期
        'maxDate': (new Date().getFullYear()) + '-' + 12 + '-' + 31 //最大日期
    });
    var calendar = new LCalendar();
    calendar.init({
        'trigger': '#end_date', //标签id
        'type': 'ym', //date 调出日期选择 datetime 调出日期时间选择 time 调出时间选择 ym 调出年月选择,
        'minDate': (new Date().getFullYear()-50) + '-' + 1 + '-' + 1, //最小日期
        'maxDate': (new Date().getFullYear()) + '-' + 12 + '-' + 31 //最大日期
    });
    //		$(function() {
    //			$('#start_date').date();
    //			$('#end_date').date();
    //		});
</script>
<script>
    $("#xueli").select({
        title: "请选择学历",
        items: ["大专", "本科", "硕士", "博士"],
        onChange: function(d) {
            console.log(this, d);
        },
        onClose: function() {
            console.log("close");
        },
        onOpen: function() {
            console.log("open");
        }
    });
</script>
<script>
    $(document).on("click", "#delete5", function() {
        $.toast("删除成功",function() {
            console.log('close');
        });
    })
</script>
<!--<script>
    $(document).on("click", "#delete5", function() {
        $.confirm("您确定要删除这条记录么?", "确认删除?", function() {
            $('#delete5').load("{:url('Teacher/delete5')}",{'id':'$tc5.id'},function(){
                $.toast("删除成功!");
            });
        }, function() {
            //取消操作
        });
    });
</script>-->
</body>
</html>